<?php
	class Utilisateur {

			//Attributs
			var $id;
			var $login;
			var $password;
			
			function Utilisateur(){}
		
			function toString(){
				$result = "";
				$result .= $this->getLogin()." ";
				$result = substr($result, 0, (strlen($result)-1));
				if($result == "") $result = "Utilisateur ".$this->getId();
				return stripslashes($result);
			}
			
			function getId(){
				if(!isset($this->id)) return "null";
				$_id = $this->id;
				return stripslashes($_id);
			}
			
			function setId($_id){
				if($_id == "") $_id = null;
				$this->id = $_id;
			}
			

			function getLogin(){
				if(!isset($this->login)) return "null";
				$_login = $this->login;
				return stripslashes($_login);
			}
			
			function setLogin($_login){
				if($_login == "") $_login = null;
				$this->login = $_login;
			}
			

			function getPassword(){
				if(!isset($this->password)) return "null";
				$_password = $this->password;
				return stripslashes($_password);
			}
			
			function setPassword($_password){
				if($_password == "") $_password = null;
				$this->password = $_password;
			}
			

	}
?>